/**
 * First we will load all of this project's JavaScript dependencies which
 * include Vue and Vue Resource. This gives a great starting point for
 * building robust, powerful web applications using Vue and Laravel.
 */

require('./bootstrap');

/**
 * Next, we will create a fresh Vue application instance and attach it to
 * the body of the page. From here, you may begin adding components to
 * the application, or feel free to tweak this setup for your needs.
 */

// import 'element-ui/lib/theme-chalk/index.css';
import {Button, Select, Form, FormItem, Input} from 'element-ui';

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'

// Vue.use(ElementUI);
Vue.use(Button);
Vue.use(Select);
Vue.use(FormItem);
Vue.use(Input);
Vue.use(Form);


// axios.defaults.baseURL = 'http://127.0.0.1:8000/api/v1/';
axios.defaults.baseURL = 'http://yh.welsonsxc.cn:80/api/v1/';
global.axios = axios;

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	components: {App},
	template: '<App/>'
});
